﻿<link href="examples/signin/signin.css" rel="stylesheet">
<?php
//PEGA O ID QUE VEM DO GET
$codUsusario = $_GET['codUsuario'];
//SELECIONA OS DADOS DO USER LOGADO
$BuscaReg = mysql_query("SELECT *
					FROM `".$_SG['TabEmpresa']."`
					 WHERE cod_empresa = '$cod_empresa'
					")
	   or die(mysql_error());
//resgata ps valores que vieram da consulta	   
$resultado = mysql_fetch_array($BuscaReg);
	$codUsuario = $resultado['CodUsuario'];
	$nome = $resultado['nomeUsuario'];
	$login = $resultado['login'];
	$genero = $resultado['generoUsuario'];
	$data = $resultado['data_Nasc'];
	$setor = $resultado['setorUsuario'];
	$tipo = $resultado['tipo'];
	$status = $resultado['status'];
	$senha = $resultado['senha'];
		
?> 
<div class="formCadastrar">
<br>
<div class="page-header">
	<h2 class="h2left">Atualizar Empresa</h2>
</div>

<form class="form-horizontal" name="formulario" role="form" method="post" action="actionCadastrarEmpresa.php" enctype="multipart/form-data" onSubmit="return validaEmail(this)">



    <div class="form-group">
        <label for="inputEmail3" class=" col-sm-2 control-label">Nome/Razão Social :</label>
        <div class=" col-sm-4">
            <input type="text" class="form-control" id="RazaoSocial" name="RazaoSocial" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputEmail3" class=" col-sm-2 control-label">CNPJ :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="cnpj" name="cnpj" maxlength="14">
        </div>
    </div>

	<div class="form-group">			
    	<label for="inputPassword3" class=" col-sm-2 control-label">Rua:</label>
        <div class=" col-sm-2">
        	<input name="rua" type="text" required class="form-control" id="rua" maxlength="40" style="width:220px">
        </div>

        <label for="inputPassword3" class="col-sm-0 control-label">Nº:</label>
        <div class=" col-sm-2">
            <input name="numero" type="text"  required class="form-control" id="numero" maxlength="5" style="width:60px">
        </div>
    </div>

     
    <div class="form-group">
           <label for="inputPassword3" class="col-sm-2 control-label">Bairro :</label>
       <div class="col-sm-4">
           <input type="text" class="form-control" id="bairro" name="bairro"  required>
      </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Cidade :</label>
        <div class="col-sm-4"  height:" 3px " padding: "6px 2px">
            <input type="text" class="form-control" id="cidade" name="cidade"  required>
        </div>
    </div>
    
     <div class="form-group" >
        <label for="inputPassword3" class="col-sm-2 control-label">Estado :</label>
        <div class="col-sm-1">
              <select name="estado" class="form-control" id="estado" style="width:110px">
                <option value="uf" selected>UF</option>
                <option value="ac">AC</option>
                <option value="al">AL</option>
                <option value="am">AM</option>
                <option value="ap">AP</option>
                <option value="ba">BA</option>
                <option value="ce">CE</option>
                <option value="df">DF</option>
                <option value="es">ES</option>
                <option value="go">GO</option>
                <option value="ma">MA</option>
                <option value="mt">MT</option>
                <option value="ms">MS</option>
                <option value="mg">MG</option>
                <option value="pa">PA</option>
                <option value="pb">PB</option>
                <option value="pr">PR</option>
                <option value="pe">PE</option>
                <option value="pi">PI</option>
                <option value="rj">RJ</option>
                <option value="rn">RN</option>
                <option value="rs">RS</option>
                <option value="ro">RO</option>
                <option value="rr">RR</option>
                <option value="sc">SC</option>
                <option value="sp">SP</option>
                <option value="se">SE</option>
                <option value="to">TO</option>
              </select>
	        </div>
    
        <label for="inputPassword3" class="col-sm-2 control-label">Cep :</label>
        <div class="col-sm-2">
            <input type="text" class="form-control" id="cep" name="cep"  maxlength="8" style="width:110px" required>
        </div>
    </div>
    
    <div class="form-group" >
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone  :</label>
        <div class="col-sm-1" >
            <input type="text" class="form-control" id="fone1"  name="fone1" style="width:110px" maxlength="10" required>
        </div>
        
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone  :</label>
        <div class="col-sm-1">
            <input type="text" class="form-control" id="fone2"  name="fone2" style="width:110px" maxlength="10" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Ramo  :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="ramo" name="ramo" maxlength="50" required>
        </div>
    </div>
    
    <br> <br>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label"><strong>Responsável¹   :</strong></label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="responsável1" name="responsavel1"  required>
      </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Email :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="emailRespo1" name="emailRespo1" maxlength="50" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Função :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="funcaoRespo1" name="funcaoRespo1" maxlength="30" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone :</label>
        <div class="col-sm-1">
            <input type="text" class="form-control" id="foneRespo1" style="width:110px" name="foneRespo1" maxlength="10" required>
        </div>
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone :</label>
        <div class="col-sm-1">
              <input type="text" class="form-control" id="fone2Respo1" style="width:110px" name="fone2Respo1" maxlength="10" required>
        </div>
    </div>
    
    <br>	<br>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label"><strong>Responsável²   :</strong></label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="responsavel2" name="responsavel2"  required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Email :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="emailRespo2" name="emailRespo2" maxlength="50" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Função :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="funcaoRespo2" name="funcaoRespo2" maxlength="30" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone :</label>
        <div class="col-sm-1">
            <input type="text" class="form-control" id="foneRespo2" style="width:110px" name="foneRespo2" maxlength="10" required>
        </div>
 
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone :</label>
        <div class="col-sm-1">
              <input type="text" class="form-control" id="fone2Respo2" style="width:110px" name="fone2Respo2" maxlength="10" required>
        </div>
    </div>
    
    <br>	<br>
    
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label"><strong>Responsável³   :</strong></label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="responsavel3" name="responsavel3"  required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Email :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="emailRespo3" name="emailRespo3" maxlength="50" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Função :</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="funcaoRespo3" name="funcaoRespo3" maxlength="30" required>
        </div>
    </div>
    
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone :</label>
        <div class="col-sm-1">
            <input type="text" class="form-control" id="foneRespo3" style="width:110px" name="foneRespo3"  maxlength="10" required>
        </div>
        <label for="inputPassword3" class="col-sm-2 control-label">Telefone :</label>
        <div class="col-sm-1">
              <input type="text" class="form-control" id="fone2Respo3" style="width:110px" name="fone2Respo3" maxlength="10" required>
        </div>
    </div>
    
    
    <br> 
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">&nbsp; &nbsp;
			<button type="submit" class="btn btn-primary">Atualizar</button>
      </div>
    </div>	   
    
    
           
                  
</form> 
      

    

 
    
</div>